#ifndef GY_GRAPHICSEDITITEM_H
#define GY_GRAPHICSEDITITEM_H

#include "GY_GraphicsRectItem.h"
#include "GY_ControlLibrary_global.h"
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsRectItem>
/**
 * @brief The GY_GraphicsEditItem class  图元可编辑点
 */
class GY_CONTROLLIBRARY_EXPORT GY_GraphicsEditItem : public QObject, public QGraphicsRectItem
{
    Q_OBJECT
public:
    explicit GY_GraphicsEditItem(QGraphicsItem *parent = nullptr);

signals:
    void editPointFChange(QGraphicsItem *item,const QString &key,const QPointF &p);

    // QGraphicsItem interface
protected:
    /**
     * @brief m_pressPoint
     */
    QPointF m_pressPoint;
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
};

#endif // GY_GRAPHICSEDITITEM_H
